<include file="public@header"/>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInUp js-check-wrap">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                </div>
                <div class="ibox-content">
                    <table class="table table-hover table-bordered table-list">
                    <thead>
                    <tr>
                        <th width="16">
                            <label>
                            <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
                            </label>
                        </th>
                        <th width="50">
                            ID
                        </th>
                        <th>
                            分类名称
                        </th>
                        <th>
                            分类描述
                        </th>
                    </tr>
                    </thead>
                    <tbody>
                    <foreach name="categories" item="vo">
                    <tr>
                        <td>
                            <php>$checked = in_array($vo['id'],$selectedIds)?'checked':'';</php>
                            <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}" data-name="{$vo.name}" {$checked}>
                        </td>
                        <td>
                            {$vo.id}
                        </td>
                        <td>
                            {$vo.name}
                        </td>
                        <td>
                            {$vo.description}
                        </td>
                    </tr>
                    </foreach>
                    </tbody>
                    </table>
                </div>
            </form>
        </div>
    </div>
</div>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>